Support Databricks 12.2 LTS and disallow unsupported reader versions and features in Delta Lake#16905
Support Databricks 12.2 LTS and disallow unsupported reader versions and features in Delta Lake#16905
Conversation
9804a65 to
b2fe20a
Compare
cb639f4 to
96a34cd
Compare
96a34cd to
50c321e
Compare
fac5148 to
30c8056
Compare
47047bf to
daf7173
Compare
daf7173 to
196027c
Compare
196027c to
813d33d
Compare
813d33d to
dcde28f
Compare
There was a problem hiding this comment.
List only the files under _change_data . In this way you can keep the initial assertion
Assertions.assertThat(s3.listObjectsV2(bucketName, changeDataPrefix).getObjectSummaries()).hasSize(0);
List<S3ObjectSummary> summaries = s3.listObjectsV2(new ListObjectsV2Request()
.withBucketName(bucketName)
.withPrefix(changeDataPrefix)
.withDelimiter("/"))
.getObjectSummaries();
We could use a constant for "/" - PATH_SEPARATOR
Reference implementation:
There was a problem hiding this comment.
List only the files under _change_data . In this way you can keep the initial assertion
It would be better to avoid hiding the fact of _change_data directory existence in my opinion.
We could use a constant for "/" - PATH_SEPARATOR
Disagreed. There's no benefit to replace the single character (it's a path separator obviously) with such a constant.
There was a problem hiding this comment.
Do note that keeping _change_data may be related to
Probably not relevant though - as this is relevant for HDFS
dcde28f to
464f999
Compare
464f999 to
ce76b63
Compare
| if (protocolEntry.getMinReaderVersion() > MAX_READER_VERSION) { | ||
| LOG.debug("Skip %s because the reader version is unsupported: %d", dataTableName, protocolEntry.getMinReaderVersion()); | ||
| return null; | ||
| } | ||
| Set<String> unsupportedReaderFeatures = unsupportedReaderFeatures(protocolEntry.getReaderFeatures().orElse(ImmutableSet.of())); | ||
| if (!unsupportedReaderFeatures.isEmpty()) { | ||
| LOG.debug("Skip %s because the table contains unsupported reader features: %s", dataTableName, unsupportedReaderFeatures); | ||
| return null; | ||
| } |
There was a problem hiding this comment.
We should fail instead or reporting "table not found".
Description
Support Databricks 12.2 LTS and disallow unsupported reader versions and features in Delta Lake
Fixes #16884
Release notes
(x) Release notes are required, with the following suggested text: